package file;

import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description: File类的方法（3）
 * User: 王圆豪
 * Date: 2025-05-09
 * Time: 21:11
 */
public class Demo3 {
    public static void main(String[] args) throws InterruptedException {
        File file = new File("D:\\JavaEE\\java-ee-beginners-learning\\JavaEE_20250417\\out\\production\\JavaEE_20250417/test.txt");
//        System.out.println(file.delete());
        file.deleteOnExit();
        Thread.sleep(3000);
    }
}
